package com.twentytwok.hospitalsystem22K.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {

    //id
    private Integer id;

    //(用户)评论者ID
    private Integer user_id;

    //评论内容
    private String content;

//    //提交时间
//    @JSONField(format = "yyyy-MM-dd")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    private Date datetime;

}
